package com.easyattendance.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="TBL_EMAIL_SETTINGS")
public class EmailSettings {
	
	@Id
	@Column(name="send_email_id",nullable=false,length=50)
	private String send_email_id;
	
	@ManyToOne
	@JoinColumn(name="section_id")
	private Section section;
	
	@Column(name="send_email_pass",nullable=false,length=100)
	private String send_email_pass;
	
	@Column(name="send_email_msg",nullable=false,length=255)
	private String send_email_msg;
	
	@Column(name="send_mode",nullable=false,length=10)
	private String send_mode;
	
	@Column(name="send_mobile_no",length=10)
	private String send_mobile_no;
	
	@Column(name="gsm_email_id",nullable=true,length=50)
	private String gsm_email_id;
	
	@Column(name="gsm_pass",nullable=true,length=100)
	private String gsm_pass;

	public EmailSettings()
	{
		
	}

	public String getSend_email_id() {
		return send_email_id;
	}

	public void setSend_email_id(String send_email_id) {
		this.send_email_id = send_email_id;
	}

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	}

	public String getSend_email_pass() {
		return send_email_pass;
	}

	public void setSend_email_pass(String send_email_pass) {
		this.send_email_pass = send_email_pass;
	}

	public String getSend_email_msg() {
		return send_email_msg;
	}

	public void setSend_email_msg(String send_email_msg) {
		this.send_email_msg = send_email_msg;
	}

	public String getSend_mode() {
		return send_mode;
	}

	public void setSend_mode(String send_mode) {
		this.send_mode = send_mode;
	}

	public String getSend_mobile_no() {
		return send_mobile_no;
	}

	public void setSend_mobile_no(String send_mobile_no) {
		this.send_mobile_no = send_mobile_no;
	}

	public String getGsm_email_id() {
		return gsm_email_id;
	}

	public void setGsm_email_id(String gsm_email_id) {
		this.gsm_email_id = gsm_email_id;
	}

	public String getGsm_pass() {
		return gsm_pass;
	}

	public void setGsm_pass(String gsm_pass) {
		this.gsm_pass = gsm_pass;
	}

	public EmailSettings(String send_email_id, String send_email_pass,
			String send_email_msg, String send_mode) {
		super();
		this.send_email_id = send_email_id;
		this.send_email_pass = send_email_pass;
		this.send_email_msg = send_email_msg;
		this.send_mode = send_mode;
	}

}

